{% extends "layout.html" %}
{% block content %}
<table class="table">
    <thead>
    <tr>
        <th scope="col">#</th>
        <th scope="col">Title</th>
        <th scope="col">Freeze Time</th>
        <th scope="col">State</th>
        <th scope="col">Stake</th>
        <th scope="col">A/B</th>
    </tr>
    </thead>
    <tbody>
    {% for t in topics %}
    <tr>
        <th scope="row">{{t.tid}}</th>
        <td><a href="/topic/{{t.tid}}">{{t.title}}</a></td>
        <td>{{t.freeze_time}}</td>
        <td>{{t.state}}</td>
        <td>{{t.stake}}</td>
        <td>{{t.a}}/{{t.b}}</td>
    </tr>
    {% endfor %}
    </tbody>
</table>

<div class="row mt10">
    <!-- 翻页 -->
    <div class="col text-right"><a href="/list/{{next}}">Next...</a></div>
</div>
{% endblock %}

